maven deploy 推送nexus测试 您所在的位置:网站首页 nexus repository 3470 maven deploy 推送nexus测试

maven deploy 推送nexus测试

2023-03-25 09:40| 来源: 网络整理| 查看: 265

推送jar包到 maven的setting.xml 配置nexus 密码 其中id 与pom.xml distributionManagement> repository> id 一致,才能调用这个密码

setting.xml

nexus-releases admin admin123 nexus-snapshots admin pom.xml nexus-releases Nexus Release Repository http://10.39.15.6:8081/repository/maven-releases/ nexus-snapshots Nexus Snapshot Repository http://10.39.15.6:8081/repository/maven-snapshots/

seettings.xml中server元素下id的值必须与POM中repository或snapshotRepository下id的值完全一致

推送前

image.png

执行推送命令 mvn deploy

image.png

检查 image.png 其他 完整setting.xml 文件 E:\maven_repository nexus-releases admin admin123 nexus-snapshots admin admin123 mynexus * http://10.39.15.6:8081/repository/maven-public/ 完整pom文件 4.0.0 cn.kaishidongle mvn-test 1.0-SNAPSHOT 8 8 UTF-8 junit junit 4.11 nexus-releases Nexus Release Repository http://10.39.15.6:8081/repository/maven-releases/ nexus-snapshots Nexus Snapshot Repository http://10.39.15.6:8081/repository/maven-snapshots/


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有